In [3]:
import pandas as pd
In [9]:
data = pd.read_csv('Pokemon.csv', index_col='#')
In [ ]:
In [10]:
data.head()
Out[10]:
In [12]:
type(data['Name'])
Out[12]:
In [16]:
(data.Name == data['Name']).all()
Out[16]:
In [22]:
data['Total'].max()
Out[22]:
In [23]:
total_mas_grande = data['Total'].max()
In [27]:
data[data['Total'] == total_mas_grande]['Name']
Out[27]:
In [29]:
data['Speed'].mean()
Out[29]:
In [32]:
%matplotlib inline
In [33]:
data['Attack'].hist()
Out[33]:
In [34]:
data['Attack'].min()
Out[34]:
In [35]:
data['Attack'].max()
Out[35]:
In [ ]:
In [ ]:
In [42]:
data.groupby('Type 2')['Total'].mean().sort_values(ascending=False)
Out[42]:
In [46]:
data.groupby(['Type 1', 'Type 2'])['Attack'].max().sort_values(ascending=False)
Out[46]:
In [49]:
import seaborn as sns
In [51]:
sns.jointplot(x='Sp. Atk', y='Sp. Def', data=data, kind='reg')
Out[51]:
In [50]:
data.head()
Out[50]:
In [53]:
sns.boxplot(data = data.drop(['Name', 'Total'], axis=1).head())
Out[53]: